<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui" 
    xmlns:ui="http://java.sun.com/jsf/facelets"> 
  
    <h:head>  
  	   <h:outputStylesheet library="css" name="main.css" />
  	</h:head>
  	   
  
  	   
    <h:body>
  
  				
	<h:form id="formConta">

	
		<h:messages style="color:red;margin:8px;" />

	<div id="main" class="container"> 
  		<div id="header" class="header">
    		<h1>Banco Norne S/A</h1>
  		</div>

			
			<p:panelGrid columns="2" style="horizontal-align:center" styleClass="content">
				
			<h:outputText value="#{msgs.tipo}" /> <br/>
			<h:selectOneRadio value="#{intranetMB.tipoConsultaCliente}">
				<f:selectItem itemLabel="Inscrição" itemValue="1"/>
				<f:selectItem itemLabel="Codigo" itemValue="2"/>
			</h:selectOneRadio> <br/><br/>
				
				<h:outputLabel for="cpfcnpj" value="#{msgs.inscricao}"  /><br/> 
				<h:inputText id="cpfcnpj" value="#{intranetMB.cliente.nuInscricao}" /><br/><br/> 
	
				<h:outputLabel for="idcliente" value="#{msgs.idCliente}"  /><br/> 
				<h:inputText id="idcliente" value="#{intranetMB.cliente.pkCliente}" /><br/><br/>
				
				<h:commandButton action="#{intranetMB.ConsultarCliente()}" value="#{msgs.consultar}"/> <br/>
				
				<h:outputLabel value="#{msgs.inscricao}"  /><br/>
				<h:outputText value="#{intranetMB.cliente.nuInscricao}" /><br/>
				<h:outputLabel value="#{msgs.idCliente}"  /><br/>
				<h:outputText value="#{intranetMB.cliente.pkCliente}" /><br/>
				<h:outputLabel value="#{msgs.nome}"  /><br/>
				<h:outputText value="#{intranetMB.cliente.nome}" /><br/>
				 
			</p:panelGrid>	



			<p:panelGrid columns="2" style="horizontal-align:center" styleClass="content">
			
			<h:outputText value="#{msgs.tipoConta}" /> <br/>
			<h:selectOneRadio value="#{intranetMB.conta.tipoConta}">
				<f:selectItem itemLabel="Eletronica" itemValue="1"/>
				<f:selectItem itemLabel="Poupanca" itemValue="2"/>
			</h:selectOneRadio> <br/><br/>
					 	 	
		</p:panelGrid>	
		
		<p:panelGrid columns="4" style="horizontal-align:center">
			<h:commandButton action="#{intranetMB.AbrirConta()}" value="#{msgs.AbrirConta}"/>
		</p:panelGrid>	
	
	<div id="trailer" class="footer"> 
    		<h5><a href="menu_intra.xhtml">retornar</a></h5>
  		</div>	
  		</div>
</h:form>
	</h:body>
	  

</html>